<?php
namespace app\admin\model;

use think\Model;
use think\Db;


class Cate extends Model
{
    protected $pk = 'id';
    protected $table = 'xc_cate';



    public function searchTitleAttr($query, $value){

        if ($value) {
            $query->where('title', 'like', '%' . $value . '%');
        }

    }
}


?>